DevForce Help Reference
ExecuteAsync<T>(IEntityQuery<T>,CancellationToken) Method
Example 


Entity type returned
This query
Execute the query asynchronously.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function ExecuteAsync(Of T)( _
   ByVal query As IEntityQuery(Of T), _
   ByVal cancellationToken As CancellationToken _
) As Task(Of IEnumerable(Of T))
'Usage
 
Dim query As IEntityQuery(Of T)
Dim cancellationToken As CancellationToken
Dim value As Task(Of IEnumerable(Of T))
 
value = EntityQueryExtensions.ExecuteAsync(Of T)(query, cancellationToken)

Parameters

query
This query
cancellationToken

Type Parameters

T
Entity type returned
Example
DomainModelEntityManager mgr = new DomainModelEntityManager();

var query = mgr.Customers.Where(c => c.Country == "UK");
var customers = await query.ExecuteAsync();
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityQueryExtensions Class
EntityQueryExtensions Members
Overload List
IdeaBlade.EntityModel.EntityManager.ExecuteQueryAsync(IEntityQuery{T})

Send Feedback